<template>
  <h1>el_分栏布局组件</h1>
  <el-row :gutter="10">
   <el-col :span="6">10</el-col>
   <el-col :span="6">10</el-col>
   <el-col :span="6">10</el-col>
   <el-col :span="6">10</el-col>
  </el-row>
  <h1>来两张图</h1>
  <el-row :gutter="10">
   <el-col :span="12"><img src="imgs/rich.jpg" style="width: 100%" alt=""></el-col>
   <el-col :span="12"><img src="imgs/rich.jpg" style="width: 100%" alt=""></el-col>
  </el-row>
  <h1>6张图</h1>
  <el-row :gutter="5">
    <el-col :span="4"><img src="imgs/rich.jpg" style="width: 100%" alt=""></el-col>
    <el-col :span="4"><img src="imgs/rich.jpg" style="width: 100%" alt=""></el-col>
    <el-col :span="4"><img src="imgs/rich.jpg" style="width: 100%" alt=""></el-col>
    <el-col :span="4"><img src="imgs/rich.jpg" style="width: 100%" alt=""></el-col>
    <el-col :span="4"><img src="imgs/rich.jpg" style="width: 100%" alt=""></el-col>
    <el-col :span="4"><img src="imgs/rich.jpg" style="width: 100%" alt=""></el-col>
  </el-row>
  <h1>3张图 1:2:3</h1>
  <el-row :gutter="5">
    <el-col :span="4"><img src="imgs/rich.jpg" style="width: 100%" alt=""></el-col>
    <el-col :span="8"><img src="imgs/rich.jpg" style="width: 100%" alt=""></el-col>
    <el-col :span="12"><img src="imgs/rich.jpg" style="width: 100%" alt=""></el-col>

  </el-row>
  <h3>数字1到8</h3>
  <el-row :gutter="5">
     <el-col :span="3" v-for="i in 8" >{{i}}</el-col>
  </el-row>
  <h3>列偏移</h3>
  <el-row :gutter="5">
    <el-col :span="20" :offset="2" ><img src="imgs/rich.jpg" style="width: 100%" alt=""></el-col>
  </el-row>
  <h3>布局嵌套</h3>
  <el-row >
    <el-col :span="12" style="border: 5px solid red">左侧</el-col>
    <el-col :span="12" style="border: 5px solid yellow">
      <el-row :gutter="10">
        <el-col :span="6" style="border: 5px solid red">10</el-col>
        <el-col :span="6" style="border: 5px solid yellow"></el-col>
        <el-col :span="6" style="border: 5px solid green"></el-col>
        <el-col :span="6" style="border: 5px solid white"></el-col>
      </el-row>
    </el-col>
  </el-row>
</template>


<script setup>

</script>

<style scoped>

</style>